/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.swt.mto.thithu.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Quiz}.
 * </p>
 *
 * @author    tuan.nguyen
 * @see       Quiz
 * @generated
 */
public class QuizWrapper implements Quiz, ModelWrapper<Quiz> {
	public QuizWrapper(Quiz quiz) {
		_quiz = quiz;
	}

	public Class<?> getModelClass() {
		return Quiz.class;
	}

	public String getModelClassName() {
		return Quiz.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("quizId", getQuizId());
		attributes.put("createUserId", getCreateUserId());
		attributes.put("modifyUserId", getModifyUserId());
		attributes.put("quizCategoryId", getQuizCategoryId());
		attributes.put("title", getTitle());
		attributes.put("description", getDescription());
		attributes.put("createDate", getCreateDate());
		attributes.put("modifydate", getModifydate());
		attributes.put("time", getTime());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long quizId = (Long)attributes.get("quizId");

		if (quizId != null) {
			setQuizId(quizId);
		}

		Long createUserId = (Long)attributes.get("createUserId");

		if (createUserId != null) {
			setCreateUserId(createUserId);
		}

		Long modifyUserId = (Long)attributes.get("modifyUserId");

		if (modifyUserId != null) {
			setModifyUserId(modifyUserId);
		}

		Long quizCategoryId = (Long)attributes.get("quizCategoryId");

		if (quizCategoryId != null) {
			setQuizCategoryId(quizCategoryId);
		}

		String title = (String)attributes.get("title");

		if (title != null) {
			setTitle(title);
		}

		String description = (String)attributes.get("description");

		if (description != null) {
			setDescription(description);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Date modifydate = (Date)attributes.get("modifydate");

		if (modifydate != null) {
			setModifydate(modifydate);
		}

		Integer time = (Integer)attributes.get("time");

		if (time != null) {
			setTime(time);
		}
	}

	/**
	* Returns the primary key of this quiz.
	*
	* @return the primary key of this quiz
	*/
	public long getPrimaryKey() {
		return _quiz.getPrimaryKey();
	}

	/**
	* Sets the primary key of this quiz.
	*
	* @param primaryKey the primary key of this quiz
	*/
	public void setPrimaryKey(long primaryKey) {
		_quiz.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the quiz ID of this quiz.
	*
	* @return the quiz ID of this quiz
	*/
	public long getQuizId() {
		return _quiz.getQuizId();
	}

	/**
	* Sets the quiz ID of this quiz.
	*
	* @param quizId the quiz ID of this quiz
	*/
	public void setQuizId(long quizId) {
		_quiz.setQuizId(quizId);
	}

	/**
	* Returns the create user ID of this quiz.
	*
	* @return the create user ID of this quiz
	*/
	public long getCreateUserId() {
		return _quiz.getCreateUserId();
	}

	/**
	* Sets the create user ID of this quiz.
	*
	* @param createUserId the create user ID of this quiz
	*/
	public void setCreateUserId(long createUserId) {
		_quiz.setCreateUserId(createUserId);
	}

	/**
	* Returns the create user uuid of this quiz.
	*
	* @return the create user uuid of this quiz
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getCreateUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _quiz.getCreateUserUuid();
	}

	/**
	* Sets the create user uuid of this quiz.
	*
	* @param createUserUuid the create user uuid of this quiz
	*/
	public void setCreateUserUuid(java.lang.String createUserUuid) {
		_quiz.setCreateUserUuid(createUserUuid);
	}

	/**
	* Returns the modify user ID of this quiz.
	*
	* @return the modify user ID of this quiz
	*/
	public long getModifyUserId() {
		return _quiz.getModifyUserId();
	}

	/**
	* Sets the modify user ID of this quiz.
	*
	* @param modifyUserId the modify user ID of this quiz
	*/
	public void setModifyUserId(long modifyUserId) {
		_quiz.setModifyUserId(modifyUserId);
	}

	/**
	* Returns the modify user uuid of this quiz.
	*
	* @return the modify user uuid of this quiz
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getModifyUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _quiz.getModifyUserUuid();
	}

	/**
	* Sets the modify user uuid of this quiz.
	*
	* @param modifyUserUuid the modify user uuid of this quiz
	*/
	public void setModifyUserUuid(java.lang.String modifyUserUuid) {
		_quiz.setModifyUserUuid(modifyUserUuid);
	}

	/**
	* Returns the quiz category ID of this quiz.
	*
	* @return the quiz category ID of this quiz
	*/
	public long getQuizCategoryId() {
		return _quiz.getQuizCategoryId();
	}

	/**
	* Sets the quiz category ID of this quiz.
	*
	* @param quizCategoryId the quiz category ID of this quiz
	*/
	public void setQuizCategoryId(long quizCategoryId) {
		_quiz.setQuizCategoryId(quizCategoryId);
	}

	/**
	* Returns the title of this quiz.
	*
	* @return the title of this quiz
	*/
	public java.lang.String getTitle() {
		return _quiz.getTitle();
	}

	/**
	* Sets the title of this quiz.
	*
	* @param title the title of this quiz
	*/
	public void setTitle(java.lang.String title) {
		_quiz.setTitle(title);
	}

	/**
	* Returns the description of this quiz.
	*
	* @return the description of this quiz
	*/
	public java.lang.String getDescription() {
		return _quiz.getDescription();
	}

	/**
	* Sets the description of this quiz.
	*
	* @param description the description of this quiz
	*/
	public void setDescription(java.lang.String description) {
		_quiz.setDescription(description);
	}

	/**
	* Returns the create date of this quiz.
	*
	* @return the create date of this quiz
	*/
	public java.util.Date getCreateDate() {
		return _quiz.getCreateDate();
	}

	/**
	* Sets the create date of this quiz.
	*
	* @param createDate the create date of this quiz
	*/
	public void setCreateDate(java.util.Date createDate) {
		_quiz.setCreateDate(createDate);
	}

	/**
	* Returns the modifydate of this quiz.
	*
	* @return the modifydate of this quiz
	*/
	public java.util.Date getModifydate() {
		return _quiz.getModifydate();
	}

	/**
	* Sets the modifydate of this quiz.
	*
	* @param modifydate the modifydate of this quiz
	*/
	public void setModifydate(java.util.Date modifydate) {
		_quiz.setModifydate(modifydate);
	}

	/**
	* Returns the time of this quiz.
	*
	* @return the time of this quiz
	*/
	public int getTime() {
		return _quiz.getTime();
	}

	/**
	* Sets the time of this quiz.
	*
	* @param time the time of this quiz
	*/
	public void setTime(int time) {
		_quiz.setTime(time);
	}

	public boolean isNew() {
		return _quiz.isNew();
	}

	public void setNew(boolean n) {
		_quiz.setNew(n);
	}

	public boolean isCachedModel() {
		return _quiz.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_quiz.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _quiz.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _quiz.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_quiz.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _quiz.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_quiz.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new QuizWrapper((Quiz)_quiz.clone());
	}

	public int compareTo(com.swt.mto.thithu.model.Quiz quiz) {
		return _quiz.compareTo(quiz);
	}

	@Override
	public int hashCode() {
		return _quiz.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.swt.mto.thithu.model.Quiz> toCacheModel() {
		return _quiz.toCacheModel();
	}

	public com.swt.mto.thithu.model.Quiz toEscapedModel() {
		return new QuizWrapper(_quiz.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _quiz.toString();
	}

	public java.lang.String toXmlString() {
		return _quiz.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_quiz.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Quiz getWrappedQuiz() {
		return _quiz;
	}

	public Quiz getWrappedModel() {
		return _quiz;
	}

	public void resetOriginalValues() {
		_quiz.resetOriginalValues();
	}

	private Quiz _quiz;
}